


def calcSum(beg, end):
    theSum = 0
    for i in range(beg, end + 1):
        theSum += i
    print(theSum)


# 求 1-100 的和
calcSum(1,100)
# 求 300-400 的和
calcSum(300,400)
